﻿using ProxyFinder.Strategies;

namespace ProxyFinder {
    
    /// <summary>
    /// This class provides basic proxy detection without prompting the user with any UI for getting proxy credentials.
    /// Use this class when you know that you won't need manual credential input.
    /// </summary>
    public class SimpleProxyFinder: BaseProxyFinder {
        public SimpleProxyFinder() {

            var savedCredentialStrategy = new SavedCredentialStrategy(new DefaultCredentialProvider());
            var integratedCredentialStrategy = new IntegratedCredentialStrategy();
            RegisterProxyStrategy(savedCredentialStrategy);
            RegisterProxyStrategy(integratedCredentialStrategy);

        }
    }
}
